import React from 'react';
import MiniBarStyle from './MiniBar.less';

export default class MiniBar extends React.Component {
  static propTypes = {
    name: React.PropTypes.string,
  };

  constructor(props) {
    super(props);
  }

  render() {
  	let { width='50%', color='#64dcdc' } = this.props;
    return (
      <div className={MiniBarStyle.miniBar}>
      	<div className='barBox'>
      		<div className='bar' style={{width,backgroundColor:color}} ></div>
      	</div>
      	<span>{width}</span>
      </div>
    );
  }
}
